.page {
  min-height: 100vh;
  background-color: #f5f5f5;
  padding-bottom: 20px;
}

.content {
  padding: 16px;
}

/* 系统状态卡片 */
.statusCard {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.statusTitle {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
  text-align: center;
}

.statusInfo {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.statusItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.statusItem:last-child {
  border-bottom: none;
}

.statusItem span:first-child {
  font-size: 14px;
  color: #666;
}

.statusItem span:last-child {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.active {
  color: #52c41a !important;
}

.inactive {
  color: #ff4d4f !important;
}

.matched {
  color: #1890ff !important;
  font-weight: 600;
}

.success {
  color: #52c41a !important;
  font-weight: 600;
}

.failed {
  color: #ff4d4f !important;
  font-weight: 600;
}

/* 摄像头容器 */
.cameraContainer {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.videoWrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.video {
  width: 100%;
  height: auto;
  display: block;
}

.canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 按钮容器 */
.buttonContainer {
  margin-bottom: 16px;
}

.buttonGroup {
  display: flex;
  gap: 12px;
}

.verifyBtn,
.startBtn,
.registerBtn,
.stopBtn {
  flex: 1;
  height: 48px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
}

.verifyBtn {
  background: #722ed1;
  color: #fff;
  border: 1px solid #722ed1;
}

.startBtn {
  background: #1890ff;
  color: #fff;
  border: 1px solid #1890ff;
}

.registerBtn {
  background: #52c41a;
  color: #fff;
  border: 1px solid #52c41a;
}

.stopBtn {
  background: #ff4d4f;
  color: #fff;
  border: 1px solid #ff4d4f;
}

/* 数据库管理卡片 */
.databaseCard {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.databaseTitle {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
  text-align: center;
}

.databaseList {
  margin-bottom: 16px;
  max-height: 200px;
  overflow-y: auto;
}

.databaseItem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #fafafa;
}

.databaseItem:last-child {
  margin-bottom: 0;
}

.userIcon {
  font-size: 24px;
  color: #1890ff;
}

.faceInfo {
  flex: 1;
}

.faceName {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}

.faceTime {
  font-size: 12px;
  color: #999;
}

.emptyDatabase {
  text-align: center;
  color: #999;
  font-size: 14px;
  padding: 20px;
}

.clearBtn {
  width: 100%;
  height: 40px;
  font-size: 14px;
  border-radius: 6px;
}

/* 注册对话框 */
.registerDialog {
  padding: 20px;
}

.dialogTitle {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
  text-align: center;
}

.nameInput {
  margin-bottom: 20px;
}

.dialogButtons {
  display: flex;
  gap: 12px;
}

.dialogButtons button {
  flex: 1;
  height: 40px;
  border-radius: 6px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .content {
    padding: 12px;
  }
  
  .statusCard,
  .cameraContainer,
  .databaseCard {
    padding: 16px;
  }
  
  .videoWrapper {
    max-width: 100%;
  }
  
  .buttonGroup {
    flex-direction: column;
  }
  
  .statusInfo {
    font-size: 13px;
  }
}
